/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.pretorius.question3.crpViolation.model;

import java.math.BigDecimal;

/**
 *
 * @author griddy
 */
public class SavingsAccount extends Account {

    public SavingsAccount(BigDecimal balance) {
        super(balance);
        super.setAccountType("Savings");
    }
    
    public SavingsAccount() {
        super();
        super.setAccountType("Savings");
    }

    @Override
    public BigDecimal calculateBonusInterest() {
        return( BigDecimal.valueOf(.5).multiply(super.getBalance()) );
    }
 
}
